<?php
namespace app\admin\model;

use think\Model;

class Announce extends model{
	function findall(){
		$res = $this->order('id desc')->where('status','neq',3)->select();
		return $res;
	}
	function findstatus($status){
		$res = $this->where('status',$status)->order('id desc')->select();
		return $res;
	}
	function findid($id){
		$res = $this->where('id',$id)->find();
		return $res;
	}
}
